/// @description 暂停游戏
// You can write your code in this editor
if(keyboard_check_pressed(vk_escape)) && (!instance_exists(oTransition)) && (oUI.visible == true)
{
	global.gamePaused = !global.gamePaused;	
	
	if(global.gamePaused)
	{
		with(all)
		{
			gamePausedSpeed = image_speed;
			image_speed = 0;
		}
	}
	else
	{
		with(all)
		{
			image_speed = gamePausedSpeed;
		}
	}
	
	
}